import React from "react";
import My_navbar from "@/components/My_navbar";
import { Button } from "antd-mobile";
import { useNavigate } from "react-router-dom";
type Props = {};

const Pay = (props: Props) => {
  let navigate = useNavigate();
  let num = Math.random().toString().slice(2, 5);
  return (
    <div>
      <My_navbar title="花呗" />
      <h2>{num}</h2>
      <Button onClick={() => navigate("/gotoPay", { state: num })}>还款</Button>
    </div>
  );
};

export default Pay;
